/**
 * 项目名称:
 *
 * @Author: 夏国倩
 * @Date: 2023/9/11 20:15
 * @Copyright
 */
package AbstractClass5;
//巴士类
public class Bus extends Car {
    private int passengerCapacity;

    public Bus(String name, String brand, String licensePlate, String plateType, int passengerCapacity) {
        super(name, brand, licensePlate, plateType);
        this.passengerCapacity = passengerCapacity;
    }
    public void displayInfo(){
        super.displayInfo();
        System.out.println("载客人数："+passengerCapacity);
    }
    public void driveRoute(){
        System.out.println("行驶路线：");
    }
}

